home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1995.02 / 000162_taob@ibms.sinica.edu.tw_Wed Mar 1 05:37:39 1995.msg < prev    next >
Internet Message Format  |  1995-02-28  |  8KB

  1. Received: from ibms.sinica.edu.tw by cs.umb.edu with SMTP id AA28818
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Tue, 28 Feb 1995 14:56:17 -0500
  3. Received: by ibms.sinica.edu.tw (4.1/SMI-4.1)
  4.     id AA05679; Tue, 28 Feb 95 21:37:39 CST
  5. Message-Id: <9502281337.AA05679@ibms.sinica.edu.tw>
  6. Subject: Re: Problems compiling web2c-6.1 on FreeBSD 2.0
  7. To: tex-k@cs.umb.edu
  8. Date: Tue, 28 Feb 1995 21:37:39 +0800 (WST)
  9. Cc: taob@io.org
  10. In-Reply-To: <9502261911.AA18589@ibms.sinica.edu.tw> from "Brian Tao" at Feb 27, 95 03:11:44 am
  11. From: taob@io.org (Brian Tao)
  12. Reply-To: taob@io.org (Brian Tao)
  13. X-Mailer: ELM [version 2.4 PL13]
  14. Content-Type: text
  15. Content-Length: 7630      
  16.  
  17.     Thank you all (Karl Berry, Timothy Murphy, Philippe Charnier and
  18. Dan Karron) for a prompt response.  It turns out that the person who
  19. was called in to install TeX before me decided to define TEXFONTS,
  20. TEXINPUTS, etc. in /etc/csh.cshrc rather than in his own personal
  21. .cshrc.  Even though the paths were correct, he did not use the //
  22. notation, and I suspect that is why none of the files were found.
  23.  
  24.     As suggested, I followed the instructions in web2c.kpathsea-2.6.help
  25. and merged the web-6.1.tar.gz, web2c-6.1.tar.gz, dvipsk-5.58f.tar.gz
  26. and xdvik-18f.tar.gz archives into a single directory.  I applied the
  27. patches and made a few changes for FreeBSD as outlined in the various
  28. INSTALL files.  SMART_PUTENV must be defined for FreeBSD, but it
  29. appears the change should be made in the acconfig.h file before
  30. Configure or make is invoked.  I don't the acconfig.h file is
  31. documented anywhere.  Doing a "./configure" from the top-level
  32. directory does not auto-detect this.  Editing c-auto.h after I had
  33. gone throug the make cycle once and rebuilding did not appear to work
  34. either.  The same problem occurred with NO_FOIL_X_WCHAR_T (also needed
  35. by FreeBSD).
  36.  
  37.     Anyhow, I was able to complete the 'make -k all' and then 'make
  38. install'.  To test, I attempted to run some of the LaTeX documentation
  39. through 'latex' to see if I could get readable .dvi files out of them.
  40. At first it was complaining that it could find the default format
  41. file, but merging my texmf and texmf-orig directories solved the
  42. problem.   texmf-orig contained the latex2e files, and I moved them
  43. out of the way before trying to build TeX.  There were many warnings,
  44. but I am told this is fairly normal (and it tells you to rerun latex
  45. anyway, sometimes more than once).
  46.  
  47.     When I used xdvi to preview the .dvi file, I received several
  48. messages about MakeTeXPK generating fonts, but xdvi not being able
  49. to find them:
  50.  
  51. >  # xdvi usrguide
  52. >  kpathsea: Running MakeTeXPK cmss9 300 300 1+0/300 
  53. >  kpathsea: Appending font creation commands to missfont.log.
  54. >  xdvi: Can't find font cmss9; using cmr10 instead at 300 dpi.
  55. >  kpathsea: Running MakeTeXPK cmmib10 360 300 magstep\(1.0\) 
  56. >  xdvi: Can't find font cmmib10 at 360 dpi; using 300 dpi instead.
  57. >  kpathsea: Running MakeTeXPK cmbx12 360 300 magstep\(1.0\) 
  58. >  xdvi: Can't find font cmbx12 at 360 dpi; using 300 dpi instead.
  59. >  kpathsea: Running MakeTeXPK cmmi12 432 300 magstep\(2.0\) 
  60. >  xdvi: Can't find font cmmi12 at 432 dpi; using 300 dpi instead.
  61. >  kpathsea: Running MakeTeXPK line10 300 300 1+0/300 
  62. >  xdvi: Can't find font line10; using cmr10 instead at 300 dpi.
  63. >  Note:  overstrike characters may be incorrect.
  64.  
  65.     It looks like MakeTeXPK is saving the fonts into /tmp/pk.  Isn't
  66. this a bad choice for a default location?  Most systems clear out /tmp
  67. on a reboot.  Wouldn't /usr/local/lib/texmf/fonts/pk make more sense?
  68. When I tried a 'locate' on "cmmi12", I find the following files:
  69.  
  70. >  # locate cmmi12
  71. >  /usr/local/lib/texmf-orig/fonts/tfm/cmmi12.tfm
  72. >  /usr/local/lib/texmf-orig/mf/cmmi12.mf
  73. >  /usr/local/lib/texmf/fonts/public/cm/pk/cx/cmmi12.300pk
  74. >  /usr/local/lib/texmf/fonts/public/cm/src/cmmi12.mf
  75. >  /usr/local/lib/texmf/fonts/public/cm/tfm/cmmi12.tfm
  76. >  /usr/X11R6/lib/texmf/fonts/pk/cmmi12.300pk
  77. >  /usr/X11R6/lib/texmf/fonts/pk/cmmi12.328pk
  78. >  /usr/X11R6/lib/texmf/fonts/pk/cmmi12.329pk
  79. >  /usr/X11R6/lib/texmf/fonts/pk/cmmi12.360pk
  80.  
  81.     I don't recall anything in the installation notes about placing
  82. files in /usr/X11R6/lib/texmf, so I'll assume that those files were
  83. created by my predecessor.  Where did he get those pk/ fonts?  I don't
  84. see then in lib.tar.gz nor in pk300.zip.  Moving the fonts/pk/
  85. directory into /usr/local/lib/texmf/fonts caused all but one of the
  86. errors to go away:
  87.  
  88. >  # xdvi usrguide
  89. >  kpathsea: Running MakeTeXPK cmmi12 432 300 magstep\(2.0\) 
  90. >  kpathsea: Appending font creation commands to missfont.log.
  91. >  xdvi: Can't find font cmmi12 at 432 dpi; using 300 dpi instead.
  92. >  Note:  overstrike characters may be incorrect.
  93.  
  94.     Upon reading the man page for mf(1) to see which environment
  95. variables I should set, I found that the default values had not be
  96. replaced by the proper values:
  97.  
  98. >      MFINPUTS       Search path for  input  and  openin  files.
  99. >                     Default:
  100. >                     @DEFAULT_MF_PATH@
  101. >
  102. >      MFBASES        Search   path  for  base  files.   Default:
  103. >                     @DEFAULT_BASE_PATH@
  104. [etc.]
  105.  
  106.     The web2c/man/ directory that contains the manual page sources had
  107. both the original .man and the substituted .1 files.  But looking in
  108. sedscript, I could not find any reference to @DEFAULT_MF_PATH@,
  109. @DEFAULT_BASE_PATH@ and several others.  Did I forget to edit a file
  110. somewhere that contains the definition of these paths?  Is this
  111. related to the problem with xdvi not finding the correct fonts?  The
  112. file looks fine in xdvi though.
  113.  
  114.     Last one.  ;-)  Running 'dvips' on the usrguide.dvi produces
  115. several more errors:
  116.  
  117. >  # dvips -f < usrguide.dvi > usrguide.ps
  118. >  This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software
  119. >  ' TeX output 1995.02.28:1710' -> 
  120. >  kpathsea: Running MakeTeXPK cmr17 600 600 1+0/600 ljfour
  121. >  kpathsea: Appending font creation commands to missfont.log.
  122. >  dvips: Font cmr17 not found, characters will be left blank.
  123. >  kpathsea: Running MakeTeXPK cmr12 600 600 1+0/600 ljfour
  124. >  dvips: Font cmr12 not found, characters will be left blank.
  125. >  kpathsea: Running MakeTeXPK cmmi12 864 600 magstep\(2.0\) ljfour
  126. >  dvips: Font cmmi12 not found, characters will be left blank.
  127. [...]
  128. >  <texc.pro>. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
  129. >  [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26]
  130. >  [27] [28] [29] [30] 
  131.  
  132.  
  133.     This goes one for another 18 fonts or so, and the produced
  134. PostScript file is predictably empty.  BTW, I assume the "ljfour" at
  135. the end of the kpathsea lines refer to a LaserJet 4.  How did it know
  136. I had one?  :)  Where does it find this information?  I went to look
  137. in the dvips man page, but it warns that the info contained therein is
  138. out of date, and that I should consult the info pages instead.
  139. Unfortunately, I haven't set up texinfo here yet, so dvips will have
  140. to wait.
  141.  
  142.     Are all my problems with fonts related to single bad config file?
  143. Or do I have to slog through the configs for xdvi and dvips and look
  144. for anything to do with pathnames?  I have not moved any files around
  145. from their suggested places, in the hopes that I could avoid messing
  146. around with config.h's and Makefiles and their ilk.
  147.  
  148.     Now that I'm very close to having a fully-functional TeX/LaTeX/
  149. MetaFont/xdvi/dvips package, would it be too much to ask for a
  150. "starter kit" of this stuff?  That is, a single tar.gz file that
  151. contains everything in one great big package.  A new LaTeX user
  152. can then unpack it into a single directory, type './configure' and
  153. then type 'make' to compile everything, then 'make install' to install
  154. all the binaries, fonts, documentation and other support files into
  155. standard locations.  While I was struggling with TeX, I was able to
  156. build and install GhostScript 3.12 with JPEG extensions and GNUemacs
  157. 19.28 by doing exactly the above.  Both are large, complex packages as
  158. well.  Are there any plans for this?  The entire web2c/kpathsea package
  159. has given me the most difficulty out of any package I have installed on
  160. any UNIX platform.  I don't intend to flame or belittle the excellent
  161. work that has gone into the entire TeX system, but I'd really like to
  162. see the installation procedure for first-time users improved.
  163.  
  164.     Having said all that, I look forward to learning the TeX language.
  165. ;-)
  166.